package com.tbit.uqbike.client.dao.capital;

import com.tbit.common.entity.RefundLog;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: yanlun
 * @Description:
 * @Date: 创建于 16:02 2022/12/05
 */
public interface RefundLogDao {

    List<RefundLog> selectByOrderId(String orderId);

    /**
     * 查询骑行订单对应退款金额
     *
     * @param userId
     * @return
     */
    @MapKey("orderId")
    Map<String, Map<String, Object>> selectRefundRideOrder(@Param("userId") Integer userId);

    /**
     * 查询卡类订单对应退款金额
     *
     * @param userId
     * @return
     */
    @MapKey("merchantNO")
    Map<String, Map<String, Object>> selectRefundCardOrder(@Param("userId") Integer userId);
}
